package com.nlp.trie.bigramSeg;

import java.util.ArrayDeque;

public class TestSegmenter {
	
	public static void testSeg(String sentence) {
		Segmenter seg = new Segmenter();
		ArrayDeque<CnToken> words = seg.split(sentence);
		for (CnToken word : words) {
			System.out.print(word.termText + " ");
			System.out.print(' ');
		}
	}
	
	public static void main(String[] args) {
		testSeg("安领国际");
		/*data = 产:2884
				data = 产品:2159
				data = 品:747
				data = 数:1930
				data = 数量:330
				data = 量:1133*/
		double a = Math.log10(100);
		System.out.println(a);
	}

}
